package com.yk.airline.dao.common.api;

import com.yk.airline.model.AirLineModel;

import java.util.List;
import java.util.Map;

/**
 * Created by JohenTeng on 2018/1/30.
 */
public interface IComSearchDao<T> {

    List<T> findByParams(String hql , Map<String,Object> params);

    Object findUnique(String hql,Map<String,Object> params);

    int findCount(String hql , Map<String,Object> params);
    public List<T> findByParamsThenPage(String hql, Map<String, Object> params,int begin ,int end);


}
